<include file="Public:header"/>

<div class="table-tit">结算列表</div>
<table class="table table-bgfont">
    <tr>
        <th>申请编号</th>
        <th>申请人</th>
        <th>结算月份</th>
        <th>金额</th>
        <th>申请时间</th>
        <th>支付时间</th>
        <th>当前状态</th>
        <th>管理</th>
    </tr>

    <volist name="data.data" id="v">
        <tr>
            <td>#{$v.set_sn}</td>
            <td>
                <if condition="$v.set_ssaid neq 0">
                    {$v.set_ssaid|getStaffName=$v['set_ssaid'],###}
                    <else/>
                    {$v.set_agent|getAgentName=$v['set_agent'],###}
                </if>
                
            </td>
            <td>{$v.set_month}月</td>
            <td>{$v.set_cash}</td>
            <td>{$v.set_time|date='Y-m-d H:i:s',###}</td>
            <td>{$v.set_paytime|date='Y-m-d H:i:s',###}</td>
            <td>
                <switch name="v.set_status">
                    <case value="100"><button type="button" class="btn btn-warning btn-xs">初审中</button></case>
                    <case value="102"><button type="button" class="btn btn-danger btn-xs">初审失败</button></case>
                    <case value="200"><button type="button" class="btn btn-warning btn-xs">复核中</button></case>
                    <case value="202"><button type="button" class="btn btn-danger btn-xs">复核失败</button></case>
                    <case value="300"><button type="button" class="btn btn-warning btn-xs">未付款</button></case>
                    <case value="301"><button type="button" class="btn btn-info btn-xs">银行退回</button></case>
                    <case value="302"><button type="button" class="btn btn-info btn-xs">网络错误</button></case>
                    <case value="400"><button type="button" class="btn btn-success btn-xs">已付款</button></case>
                </switch>
            </td>
            <td>
                <if condition="$v.set_status lt 200">
                    <a href="{:U('Cash/applyinfo','ssi='.$v['set_id'])}">
                        <button type="button" class="btn btn-info btn-xs">浏览</button>
                    </a>
                    <else/>
                    <a href="{:U('Cash/checkinfo','ssi='.$v['set_id'])}">
                        <button type="button" class="btn btn-info btn-xs">浏览</button>
                    </a>
                </if>
                
            </td>
        </tr>
    </volist>
    <tr>
        <td colspan="10">{$data.page}</td>
    </tr>


</table>

<include file="Public:footer"/>